
<%@page import="cn.com.dhcc.app.core.CoreEnv.CoreInitCtx"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/view/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>${appname}</title>
<%@ include file="/WEB-INF/view/common/css_js_ace.jsp"%>
<%@ include file="/WEB-INF/view/common/css_js_ztree.jsp"%>
<script type="text/javascript">
$(function(){
	$('.tipMe').tooltip({'placement':'top'});
});

/**
 * 查看信息
 */
function getById(id){
	$.ajax({
		   type: "GET",
		   dataType:"html",
		   cache: false,
		   url: _ctx + "/func_identify/func_identify_get.do",
		   data: {id:id},
		   beforeSend : function(){
	       },
		   success: function(content){
				$('#funcIdentityGetDiv').html(content);
				var hiddenByClick = false;
				window.parent.iframeModal("funcIdentityGetModal", $('#funcIdentityGetModal').html(), hiddenByClick);
		   },
		   error:function(){
			   parent.ui.msg( '请求发送失败！',0 );
		   }
	});
}

</script>
<body >
	<div class="main-container" id="main-container">
		<div class="main-container-inner">
			<div class="main-content" style="margin-left: 0px;">
				<div class="breadcrumbs" id="breadcrumbs">
					<ul class="breadcrumb">
						<li><i class="icon-home home-icon"></i>首页</li>
						<li>自定义对象管理 </li>
						<li>函数管理 </li>
						<li class="active">列表</li>
					</ul>
				</div>
				<div class="page-content">
					<div class="row">
						<div class="col-xs-12">
							<div class="widget-box">
				  				<div class="widget-header widget-header-flat">
				  					<h5 class="smaller lighter">
										<i class="icon-list"></i> &nbsp;
									</h5>
									<%-- <div class="widget-toolbar no-border">
										<a class="btn btn-primary btn-xs" href="${ctx}/func_identify/func_identify_add.do" ><i class="icon-plus-sign icon-on-right"></i> 添加&nbsp;&nbsp;</a>
									    <a href="#" data-action="collapse"> <i class="icon-chevron-up"></i></a>
									</div> --%>
								</div>
								<div class="widget-body">
									<div class="widget-main">
										<form id="searchForm" class="form-search" action="${ctx}/func_identify/func_identify_list.do" method="post" onsubmit="return search(this)">
											<div class="row mg-top12">
												<div class="col-xs-4">
													<div class="input-group">
														<span class="input-group-addon">函数中文名</span> <input
															class="form-control" type="text" name="fxNameCn"
															value="${param.fxNameCn}" />
													</div>
												</div>
												<div class="col-xs-4">
													<div class="input-group">
														<span class="input-group-btn">
															<button type="submit" class="btn btn-purple btn-sm">
																<i class="icon-search icon-on-right bigger-110"></i> 搜索
															</button>&nbsp;&nbsp;
	
														</span>
													</div>
												</div>
											</div>
										</form>
									</div>
								</div>
							</div>
							<div class="hr hr12 hr-dotted"></div>
							<div class="table-responsive">
								<table class="table table-striped table-bordered table-hover">
									<thead>
										<tr>
											<th class="center">序号</th>
											<th>函数中文名</th>
											<th>函数英文名</th>
											<th>函数类型</th>
											<th>备注</th>
											<th>更新时间</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									    <c:forEach var="vo" items="${_data}" varStatus="status">
										<tr>
											<td class="center"> ${status.index + 1}</td>
											<td>${vo.fxNameCn}</td>	
											<td>${vo.fxNameEn}</td>							
											<td>${app:ctname("FX_TYPE",vo.fxType)}</td>
											<td><span class="tipMe" title="${vo.remark}">${app:lmitStrPx(vo.remark,350)}</span></td>
											<td>${app:fmtDate(vo.mtime)}</td>
											<td>
												<div class="visible-md visible-lg hidden-sm hidden-xs action-buttons">
													<a class="blue" href="javascript:void(0)" onclick="getById('${vo.id}');" title="查看">
														<i class="icon-zoom-in bigger-130"></i>
													</a>
												</div>
											</td>
										</tr>
										</c:forEach> 
										
									</tbody>
									
	      							</table>
								<jsp:include page="/WEB-INF/view/common/pg.jsp">
								<jsp:param value="${ctx}/func_identify/func_identify_list.do" name="url"/>
								<jsp:param value="${_total}" name="total"/>
								<jsp:param value="${_urlpara}" name="urlpara" />
							    </jsp:include>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	
 <div id="funcIdentityGetModal" class="modal fade" role="dialog" tabindex="-1" aria-labelledby="查看" aria-hidden="false" >
	<div class="modal-dialog" style="width: 850px;">
		<div class="modal-content">
		<div class='widget-header widget-header-small'><h6 class='smaller'> 查看函数详细信息</h6></div>
		<div id="funcIdentityGetDiv"></div>
		</div>
	</div>
</div>
</body>
</html>
